/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package light;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLayeredPane;

/**
 *
 * @author Khorn
 */
public class Light {
    public static int WIDTH = 590;
    public static int HEIGHT = 602;
    public static String NAME = "Light";
    public static MainWorkSpace workspace = new MainWorkSpace();                 //создание новой панели
    public static JFrame frame = new JFrame();
    public static MainMenu mainMenu = new MainMenu();
    public static LevelMenu levelMenu = new LevelMenu();
    public static UtilityPanel utilityPanel = new UtilityPanel();
    public static JLayeredPane layeredpane = new JLayeredPane();
    public static SuccessDialog successDialog = new SuccessDialog();
    public static Credits credits = new Credits();
    
    
    public static void main(String[] args) {
        frame.setName(NAME);                                    
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //действие при нажатии на крестик
        frame.setLayout(new BorderLayout());                    
        frame.add(mainMenu, BorderLayout.AFTER_LAST_LINE);
        mainMenu.setVisible(true);
        frame.pack();
        frame.setResizable(false);            //нерастяжимый
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }  
    
}
